Introduction to Software Testing and Analysis (Volume II) by V.K. Jain
Author:V.K. Jain [Jain, V.K.]
Language: eng
Format: epub
Publisher: Atlantic Publishers & Distributors Pvt Ltd
Published: 2018-07-04T23:00:00+00:00
Don’t confuse the relation of objects to classes, on the one hand, with the relation of a base class to derived classes, on the other. Objects which exist in the computer’s memory, embody the exact characteristics of their class, which serves as a design. Derived classes inherit some characteristics from their base class, but add new ones of their own.
Inheritance is somewhat analogous to using functions to simplify a traditional procedural program. If we find that three different sections of a procedural program do almost exactly the same thing, we recognize an opportunity to extract the common elements of these three sections and put them into a single function. The three sections of the program can call the function to execute the common actions, and they can perform their own individual processing as well. Similarly, a base class contains elements common to a group of derived classes. As functions do in a procedural program, inheritance shortens an object-oriented program and clarifies the relationships among program elements.
Inheritance means that one class inherits the characteristics of another class as part of its definition. Inheritance is appropriate when one class is ‘a kind of’ other class (e.g., a is a kind of b-‘text window’ is a kind of ‘window’). These types of hierarchies are fundamental to object-oriented programming. Some classes may inherit from more than one other class, and this is known as ‘multiple inheritance’.
A ‘classification hierarchy’ shows the inheritance relationships between classes, based on the similarities between different classes of objects, Inheritance has two complementary roles:
To allow a class to be extended so that its existing functionality can be built on for new applications.
To allow similar objects to share their common properties and allowed behaviors.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27094)
Hello! Python by Anthony Briggs(25948)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25285)
Kotlin in Action by Dmitry Jemerov(24393)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23591)
Dependency Injection in .NET by Mark Seemann(23313)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21944)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20848)
Grails in Action by Glen Smith Peter Ledbrook(19869)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17072)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16832)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14464)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12582)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11865)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10650)
Hit Refresh by Satya Nadella(9236)
The Kubernetes Operator Framework Book by Michael Dame(8588)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8445)
Robo-Advisor with Python by Aki Ranin(8387)